package cm.day09;

import java.io.File;
import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        //键盘录入字符串
        Scanner sc = new Scanner(System.in);
        String lin = sc.next();
        //将字符串存到
//        File file = new File(lin);
        show(lin);

    }

    public static void show(String filePath) {
        //绝对路径名
        File file = new File(filePath);
        System.out.println("绝对路径："+file.getAbsoluteFile());
        //文件名
        String name = file.getName();
        System.out.println("文件名："+name);
        //文件大小
        long length = file.length();
        System.out.println("文件大小："+length);


    }
}
